<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%-- @author: Christian Baumhof --%>

<%-- Title --%>
<h1>
	<s:text name="title.reset" />
</h1>

<%-- Reset warning --%>
<s:text name="reset.confirmation" />
<p class="errorMessage">
	<s:text name="reset.warning" />
</p>

<%-- Reset + cancel button --%>
<s:form>
	<table class="formTable">
		<tr>
			<td><s:submit theme="simple" key="btn.resetDb" action="ResetDb" /></td>
			<td><s:submit theme="simple" key="button.cancel"
					action="ShowExamOverview" /></td>
		</tr>
	</table>
</s:form>

<%-- Success message (if reset successful --%>
<s:if test="%{resetDbSuccess}">
	<p class="successMessage">
		<s:text name="reset.success" />
	</p>
</s:if>

<%-- Error message (if reset not successful --%>
<s:elseif test="%{resetDbFailed}">
	<p class="errorMessage">
		<s:text name="error.resetFailed" />
	</p>
</s:elseif>
